package com.sright.bcard.common.biz.service;

import com.sright.bcard.common.biz.manager.ContentCheckManager;
import com.sright.bcard.common.service.share.dto.common.CheckResultDTO;
import com.sright.bcard.common.share.service.ContentCheckService;
import com.sright.common.response.SrightResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@Slf4j
public class ContentCheckServiceImpl implements ContentCheckService {

    @Autowired
    private ContentCheckManager manager;

    @Override
    public String textCheck(List<String> content,Long userId,Integer sourceId) {
        return manager.textCheck(content,userId,sourceId);
    }

    @Override
    public CheckResultDTO singleImageCheck(String filePath,Long userId) {
        return manager.singleImageCheck(filePath,userId);
    }

    @Override
    public void submitSingleVideoCheck(Long materialId) {
        manager.submitSingleVideoCheck(materialId);
    }

    @Override
    public SrightResponse callback(Map<String, Object> request) {
        return SrightResponse.defaultSuccess(manager.callback(request));
    }
}
